/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaBuscaProducto.java
 *
 * Created on 19/07/2011, 17:47:27
 */
package interfacesGraficas;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JToolBar;

/**
 *
 * @author edu
 */
public class PantallaDetalleNuevaVenta extends javax.swing.JFrame {

    /** Creates new form PantallaBuscaProducto */
    public PantallaDetalleNuevaVenta() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        grupoArticulo = new javax.swing.ButtonGroup();
        jToolBar1 = new javax.swing.JToolBar();
        botonAgregarArticulo = new javax.swing.JButton();
        botonSalir = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaBuscaArticuloNuevaVenta = new javax.swing.JTable();
        jPanel3 = new javax.swing.JPanel();
        radioNºArticulo = new javax.swing.JRadioButton();
        radioNombreArticulo = new javax.swing.JRadioButton();
        botonBuscarArticulo = new javax.swing.JButton();
        campoNArticulo = new javax.swing.JTextField();
        campoNombreArticulo = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new java.awt.GridBagLayout());

        jToolBar1.setRollover(true);

        botonAgregarArticulo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Save_30.png"))); // NOI18N
        botonAgregarArticulo.setToolTipText("Agregar Artículo");
        botonAgregarArticulo.setFocusable(false);
        botonAgregarArticulo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonAgregarArticulo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonAgregarArticulo);

        botonSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        botonSalir.setToolTipText("Salir");
        botonSalir.setFocusable(false);
        botonSalir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        botonSalir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(botonSalir);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        getContentPane().add(jToolBar1, gridBagConstraints);

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Artículos"));

        tablaBuscaArticuloNuevaVenta.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tablaBuscaArticuloNuevaVenta);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 20, 20, 20);
        getContentPane().add(jPanel2, gridBagConstraints);

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar Artículos"));
        jPanel3.setLayout(new java.awt.GridBagLayout());

        grupoArticulo.add(radioNºArticulo);
        radioNºArticulo.setSelected(true);
        radioNºArticulo.setText("Nº Artículo:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 10, 0, 0);
        jPanel3.add(radioNºArticulo, gridBagConstraints);

        grupoArticulo.add(radioNombreArticulo);
        radioNombreArticulo.setText("Nombre Artículo:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.insets = new java.awt.Insets(20, 10, 15, 0);
        jPanel3.add(radioNombreArticulo, gridBagConstraints);

        botonBuscarArticulo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Search-20.png"))); // NOI18N
        botonBuscarArticulo.setText("Buscar");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(13, 20, 0, 15);
        jPanel3.add(botonBuscarArticulo, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(17, 5, 0, 0);
        jPanel3.add(campoNArticulo, gridBagConstraints);

        campoNombreArticulo.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 100;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(17, 5, 0, 0);
        jPanel3.add(campoNombreArticulo, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(20, 20, 0, 0);
        getContentPane().add(jPanel3, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonAgregarArticulo;
    private javax.swing.JButton botonBuscarArticulo;
    private javax.swing.JButton botonSalir;
    private javax.swing.JTextField campoNArticulo;
    private javax.swing.JTextField campoNombreArticulo;
    private javax.swing.ButtonGroup grupoArticulo;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JRadioButton radioNombreArticulo;
    private javax.swing.JRadioButton radioNºArticulo;
    private javax.swing.JTable tablaBuscaArticuloNuevaVenta;
    // End of variables declaration//GEN-END:variables

    public JButton getBotonAgregarArticulo() {
        return botonAgregarArticulo;
    }

    public void setBotonAgregarArticulo(JButton botonAgregarArticulo) {
        this.botonAgregarArticulo = botonAgregarArticulo;
    }

    public JButton getBotonBuscarArticulo() {
        return botonBuscarArticulo;
    }

    public void setBotonBuscarArticulo(JButton botonBuscarArticulo) {
        this.botonBuscarArticulo = botonBuscarArticulo;
    }

    public JButton getBotonSalir() {
        return botonSalir;
    }

    public void setBotonSalir(JButton botonSalir) {
        this.botonSalir = botonSalir;
    }

    public JTextField getCampoNArticulo() {
        return campoNArticulo;
    }

    public void setCampoNArticulo(JTextField campoNArticulo) {
        this.campoNArticulo = campoNArticulo;
    }

    public JTextField getCampoNombreArticulo() {
        return campoNombreArticulo;
    }

    public void setCampoNombreArticulo(JTextField campoNombreArticulo) {
        this.campoNombreArticulo = campoNombreArticulo;
    }

    public ButtonGroup getGrupoArticulo() {
        return grupoArticulo;
    }

    public void setGrupoArticulo(ButtonGroup grupoArticulo) {
        this.grupoArticulo = grupoArticulo;
    }

    public JPanel getjPanel2() {
        return jPanel2;
    }

    public void setjPanel2(JPanel jPanel2) {
        this.jPanel2 = jPanel2;
    }

    public JPanel getjPanel3() {
        return jPanel3;
    }

    public void setjPanel3(JPanel jPanel3) {
        this.jPanel3 = jPanel3;
    }

    public JRadioButton getjRadioButton1() {
        return radioNºArticulo;
    }

   

    public JScrollPane getjScrollPane1() {
        return jScrollPane1;
    }

    public void setjScrollPane1(JScrollPane jScrollPane1) {
        this.jScrollPane1 = jScrollPane1;
    }

    public JToolBar getjToolBar1() {
        return jToolBar1;
    }

    public void setjToolBar1(JToolBar jToolBar1) {
        this.jToolBar1 = jToolBar1;
    }

    public JTable getTablaBuscaArticuloNuevaVenta() {
        return tablaBuscaArticuloNuevaVenta;
    }

    public void setTablaBuscaArticuloNuevaVenta(JTable tablaBuscaArticuloNuevaVenta) {
        this.tablaBuscaArticuloNuevaVenta = tablaBuscaArticuloNuevaVenta;
    }

    public JRadioButton getRadioNombreArticulo() {
        return radioNombreArticulo;
    }

    public void setRadioNombreArticulo(JRadioButton radioNombreArticulo) {
        this.radioNombreArticulo = radioNombreArticulo;
    }

    public JRadioButton getRadioNºArticulo() {
        return radioNºArticulo;
    }

    public void setRadioNºArticulo(JRadioButton radioNºArticulo) {
        this.radioNºArticulo = radioNºArticulo;
    }

   


}
